﻿<UserControl x:Class="Wulong.Phone.Qiushi.Views.SettingsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:c4f="clr-namespace:Coding4Fun.Phone.Controls;assembly=Coding4Fun.Phone.Controls" 
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" 
    xmlns:cal="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro" mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">
    
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <StackPanel x:Name="ContentPanel" Grid.Row="0" Grid.ColumnSpan="2" Margin="12,17,0,28" Width="440"  >
            <toolkit:ListPicker x:Name="LanguageSupport" 
                                Header="{Binding Path=AppI18N.V_Settings_Lang_Select_Header, Source={StaticResource ls}}"                                 
                                SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}"
                                cal:Message.Attach="[Event SelectionChanged]=[Action SaveLangSetting($this.SelectedIndex)]">
                <toolkit:ListPickerItem Content="{Binding Path=AppI18N.V_Settings_Lang_Select_Option_Auto, Source={StaticResource ls}}"/>
                <toolkit:ListPickerItem Content="{Binding Path=AppI18N.V_Settings_Lang_Select_Option_Chinese, Source={StaticResource ls}}"/>
                <toolkit:ListPickerItem Content="{Binding Path=AppI18N.V_Settings_Lang_Select_Option_English, Source={StaticResource ls}}"/>
            </toolkit:ListPicker>
        </StackPanel>

    </Grid>
</UserControl>
